package csc.daonjpa.java.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * Entity class for Account table. This is a simple POJO class with annotations to define mapping with DB table
 * @author nvu3
 *
 */
@Entity
@Table(name="card")
@PrimaryKeyJoinColumn(name = "cardNumber")
public class Card extends BaseInfor implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name = "type")
	private String cardType;
	
	@ManyToOne
	@JoinColumn(name="loginId")
	private Customer customer;

	/**
	 * Required constructor
	 */
	public Card() {
	
	}


	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}



	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	
	
}